package com.zlll.winner.business.service.lhtUser;

import com.zlll.winner.business.model.lhtUser.LhtUserIntegralDetail;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 用户积分明细表
 * 服务类
 * </p>
 *
 * @author qsx
 * @since 2019-09-30
 */
public interface ILhtUserIntegralDetailService extends IService<LhtUserIntegralDetail> {
    /**
     * 判断是否还能增加日常任务积分
     *
     * @return
     */
    Boolean isAdd(Long userId, Long taskId);

    /**
     * 保存每日任务
     *
     * @param integralDetail
     * @return
     */
    Boolean saveDailyTasks(LhtUserIntegralDetail integralDetail) throws InterruptedException;

    /**
     * 观看任务
     *
     * @param integralDetail
     * @return
     */
    Boolean saveWatchTasks(LhtUserIntegralDetail integralDetail) throws InterruptedException;

    /**
     * 获取当日积分情况
     * @param userId
     * @return
     */
    Object getTodayIntegrail(Long userId);
}
